package org.tempuri;

public class TransactionQueryWsSoapProxy implements org.tempuri.TransactionQueryWsSoap {
  private String _endpoint = null;
  private org.tempuri.TransactionQueryWsSoap transactionQueryWsSoap = null;
  
  public TransactionQueryWsSoapProxy() {
    _initTransactionQueryWsSoapProxy();
  }
  
  public TransactionQueryWsSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initTransactionQueryWsSoapProxy();
  }
  
  private void _initTransactionQueryWsSoapProxy() {
    try {
      transactionQueryWsSoap = (new org.tempuri.TransactionQueryWsLocator()).getTransactionQueryWsSoap();
      if (transactionQueryWsSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)transactionQueryWsSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)transactionQueryWsSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (transactionQueryWsSoap != null)
      ((javax.xml.rpc.Stub)transactionQueryWsSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.TransactionQueryWsSoap getTransactionQueryWsSoap() {
    if (transactionQueryWsSoap == null)
      _initTransactionQueryWsSoapProxy();
    return transactionQueryWsSoap;
  }
  
  public java.lang.String getTransactionData(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQueryWsSoap == null)
      _initTransactionQueryWsSoapProxy();
    return transactionQueryWsSoap.getTransactionData(product_id, trans_ref);
  }
  
  public java.lang.String getTransactionAcquirerData(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQueryWsSoap == null)
      _initTransactionQueryWsSoapProxy();
    return transactionQueryWsSoap.getTransactionAcquirerData(product_id, trans_ref);
  }
  
  public java.lang.String getTransactionAcquirerSplitData(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQueryWsSoap == null)
      _initTransactionQueryWsSoapProxy();
    return transactionQueryWsSoap.getTransactionAcquirerSplitData(product_id, trans_ref);
  }
  
  public java.lang.String getTransactionResponse(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQueryWsSoap == null)
      _initTransactionQueryWsSoapProxy();
    return transactionQueryWsSoap.getTransactionResponse(product_id, trans_ref);
  }
  
  
}